package com.lyx.bank.feign;



import com.lyx.bank.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.xml.crypto.Data;


@FeignClient("bank-records")
public interface RecordsFeign {

    @GetMapping("/records")
    public  Result records(
            @RequestParam(value = "current",required = true,defaultValue = "1") Integer current,
            @RequestParam(value = "size",required = true,defaultValue = "7") Integer size,
            @RequestParam(value = "cardNo") String cardNo,
            @RequestParam(value = "oneDate",required = false) String oneDate,
            @RequestParam(value = "towDate",required = false)  String towDate);





}
